{% extends "sniffbook/base.html" %}
{% block content %}
{% if results %}
<b>Materials</b>
<table>
  {% for a in results %}
  <tr>
  <td>{{ a.bottle_num|default_if_none:"" }}</td>
  <td><a href="/material/{{a.id}}">{{ a.name }}</a></td>
  <td>{{ a.notes }}</td>
  <td>{{ a.ml_on_hand|floatformat }}</td>
  <td>{{ a.substantivity|floatformat }}</td>
  <td>{{ a.price_ml|floatformat:2 }}</td>
  </tr>
  {% endfor %}
</table>
{% endif %}

{% endblock %}
